//
//  ProgramaCollectionCell.m
//  花花时尚
//
//  Created by 霍文轩 on 15/8/27.
//  Copyright (c) 2015年 霍文轩. All rights reserved.
//

#import "ProgramaCollectionCell.h"
#import "UIImageView+WebCache.h"
#import "Define.h"
#import "ProgramaModel.h"

@interface ProgramaCollectionCell ()
@property (nonatomic,retain) UIImageView * showImage;
@end

@implementation ProgramaCollectionCell
- (void)dealloc
{
    [_showImage release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createViews];
    }
    return self;
}

-(void)createViews{
    self.showImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
    [self.contentView addSubview:_showImage];
    [_showImage release];
}

-(void)setCellWithModel:(ProgramaModel *)model{
    NSString * urlString = [NSString stringWithFormat:@"%@%@",kWebImageDomain,model.imguri];
    [_showImage sd_setImageWithURL:[NSURL URLWithString:urlString]];
}
@end
